<template>
  <div>
    <basic-dialog
      :icon="icon"
      :title="title"
      width="850px"
      height="85%"
      v-bind="$attrs"
      @close="close"
      :openFlag="openEdit"
    >
      <template #content>
        <el-form label-width="140px" label-position="right" :model="form">
          <el-row>
            <el-col span="24">
              <el-form-item label="涉及粉尘生产工艺">
                <el-input style="width: 98.5%" size="small"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col span="12">
              <el-form-item label="粉尘种类">
                <el-input :style="`width:${width}` " size="small"></el-input>
              </el-form-item>
            </el-col>
            <el-col span="12">
              <el-form-item label="日产尘量 ">
                <el-input :style="`width:${width}` " size="small"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col span="12">
              <el-form-item label="所属行业">
                <el-input :style="`width:${width}` " size="small"></el-input>
              </el-form-item>
            </el-col>
            <el-col span="12">
              <el-form-item label="涉及职业病危害因素">
                <el-input :style="`width:${width}` " size="small"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col span="12">
              <el-form-item label="所属部门">
                <el-input :style="`width:${width}` " size="small"></el-input>
              </el-form-item>
            </el-col>
            <el-col span="12">
              <el-form-item label="涉粉作业场所名称">
                <el-input :style="`width:${width}` " size="small"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col span="12">
              <el-form-item label="涉粉作业场所人数">
                <el-input :style="`width:${width}` " size="small"></el-input>
              </el-form-item>
            </el-col>
            <el-col span="12">
              <el-form-item label="涉粉单班作业人数">
                <el-input :style="`width:${width}` " size="small"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col span="12">
              <el-form-item label="除尘器种类">
                <el-radio-group>
                  <el-radio :label="3">集中除尘系统</el-radio>
                  <el-radio :label="6">单机除尘设备</el-radio>
                </el-radio-group>
              </el-form-item>
            </el-col>
            <el-col span="12">
              <el-form-item label="除尘器种类">
                <el-input :style="`width:${width}` " size="small"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col span="12">
              <el-form-item label="除尘器数量">
                <el-input :style="`width:${width}` " size="small"></el-input>
              </el-form-item>
            </el-col>
            <el-col span="12">
              <el-form-item label="是否安装监控">
                <el-radio-group>
                  <el-radio :label="3">是</el-radio>
                  <el-radio :label="6">否</el-radio>
                </el-radio-group>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col span="12">
              <el-form-item label="是否建立粉尘清扫制度">
                <el-radio-group>
                  <el-radio :label="3">是</el-radio>
                  <el-radio :label="6">否</el-radio>
                </el-radio-group>
              </el-form-item>
            </el-col>
            <el-col span="12">
              <el-form-item label="是否涉爆">
                <el-radio-group>
                  <el-radio :label="3">是</el-radio>
                  <el-radio :label="6">否</el-radio>
                </el-radio-group>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col>
              <el-form-item label="图片">

              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col>
              <el-form-item label="上传附件">

              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col>
              <el-form-item label="备注">
                <el-input style="width: 98.5%" size="small"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
        </el-form>
      </template>
      <template #bottom>
        <div>
          <el-button type="primary" @click="submitForm('form')"
          >保存</el-button
          >
          <el-button type="success" @click="resetForm('form')"
          >重置</el-button
          >
          <el-button type="warning" @click="close">取消</el-button>
        </div>
      </template>
    </basic-dialog>
  </div>
</template>
<script>
export default {
  name: "editDialog",
  data() {
    return {
      icon: 'icon-bianji',
      title: '新增粉尘信息',
      openEdit: false,
      width: "260px",
      form:{}
    }
  },
  methods: {
    open() {
      this.openEdit = true
    },
    close() {
      this.openEdit = false
    },
    submitForm(){

    },
    resetForm(){

    }
  }
}
</script>

<style scoped lang="scss">
/deep/ .el-form-item {
  margin-bottom: 0 !important;
}
</style>
